package org.example.json.valueobject;

import lombok.Builder;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.extern.jackson.Jacksonized;
import org.example.json.inspect.Probe;

@Getter
@EqualsAndHashCode
//@JsonDeserialize(builder = Customer.CustomerBuilder.class)
public class Customer {
    private long id;
    private String name;
    private String contact;

    @Jacksonized
    @Builder
    public Customer(long id, String name, String contact) {
        Probe.run(Customer.class, id, name, contact);
        this.id = id;
        this.name = name;
        this.contact = contact;
    }
}
